package com.by.mapper.common;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.by.entity.common.Attachment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AttachmentMapper extends BaseMapper<Attachment> {
    /**
     *
     * @param attachments
     * @param billtype
     * @param billId
     * @return
     */
    int saveBatch(@Param("attachments") List<Attachment> attachments, @Param("billtype") byte    billtype, @Param("billId") String billId);

    List<Attachment> queryAttByPurchaseId(String id);
}
